from django.conf.urls import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic.base import RedirectView
from django.contrib import admin

from basic import views as v


admin.autodiscover()

urlpatterns = patterns(
    'django.views.generic.base',
    url(r'^$', v.homeView, name="home"),
    url(r'^query/$', v.queryView, name="query"),
    url(r'^browse/$', v.queryView, name="browse"),
    url(r'^myorders/$', v.orderedView, name="ordered"),
    url(r'^changeorder/$', v.changeOrder, name="change_order"),
    url(r'^order/$', v.orderView, name="order"),
    url(r'^signup/$', v.signupView, name="signup"),
    url(r'^staff/$', v.staffView, name="staff"),
    url(r'^login/$', v.loginView, name="login"),
    url(r'^logout/$', v.logoutView, name="logout"),
    # url(r'^multimedio/', include('multimedio.foo.urls')),
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^favicon\.ico$', RedirectView.as_view(url='/static/img/favicon.ico')),
)

urlpatterns += staticfiles_urlpatterns()
